# -*- coding: utf-8 -*-
import requests
from datetime import datetime


fids = ['1508A14CC7C0069D','F07BC4B8A40BC601','37DA0C38D5021D71','9697479A47ED6058','EB340301FA4D5DD1','C9F0A4E402F59D60','0F6C073CE1DCAD3C','54D612D32027E8E0','A1E6A49A047C6F14','09136C909497B663','0A0DE8609444B144','5A66ECCE530E7871','E52FE8BD1B280A53','096334FBD74B75A7','E968B9D4145AE5FF','4858A3981CE458B9','ED08974F20610F0B','E37FBC43CB9A105F','067F35C01067DE3B','40332159BC73C4A2','B70747B605F31CDE','4FF01306900C1673','36C43EE737B3E771','95021E6E43BC0C92','F0CF66FCAE3CE6CB','454145BD080C0AA7','F20102D360F4042A','E803150D5E44A0ED','A2A313EFB1316826','75A5D8F2712FAC03','917CF790C35A9D9F','217C67DB982F0BC7','1A29417B910EE9B5','C4E100F668408026','7704F263CADF0F0D','059EDF69427A2FF3','3E28D7CB0362229C','6AA65808047F6462','080BC42059CF9A92','EA0CBF46C23BCBAE','34AB68D7C5E4C8D6','DF1C7EEC4718FE96','0B594535485E9007','B79D00FE1DDF3692']
print(len(fids))

#
# now=datetime.now()
# y = now.year
# m = now.month
# d = now.day
# h = now.hour
# m = now.minute
#.
# print(datetime.now().strftime('%H:%M'))
#
# print(datetime.strptime('2020-11-07_12:28:47', '%Y-%m-%d_%H:%M:%S'))
#
# r = requests.get('http://www.ailaba.org/Help/ProblemBranch?Problemtype=33537')
# print(r.content)
#
# strss = """
# ./clonevm.sh -i {tmid} -n 120{num} -m lygdxly-120{num} -p 20{num}
# ./clonevm.sh -i {tmid} -n 1202 -m lygdxly-1202 -p 202
# ./clonevm.sh -i {tmid} -n 1203 -m lygdxly-1203 -p 203
# ./clonevm.sh -i {tmid} -n 1204 -m lygdxly-1204 -p 204
# ./clonevm.sh -i {tmid} -n 1205 -m lygdxly-1205 -p 205
# ./clonevm.sh -i {tmid} -n 1206 -m lygdxly-1206 -p 206
# """
# # d=1
#
# for k in range(1, 9):
#     print("python hd4.py setdisk {}201".format(k))
#
# for d in range(1,10):
#     for i in range(1,9):
#         print("./clonevm.sh -i {d}{tmid} -n {d}20{num} -m hadxqp-{d}20{num} -p 20{num}".format(tmid=200, d=d, num=i))
#     print("")
#     print("")


# modid=9200
# startnum=9201
# vmid=startnum
# pis=0
# while True:
#     print("qm clone {} {}".format(modid,vmid))
#     print("qm set {} -name hadxhy-{}".format(vmid, vmid))
#     #print("qm set {} -smbios1 uuid={}".format(vmid, td[2])
#     #print("qm set {} -net0 virtio={},bridge=vmbr0".format(vmid, td[4].upper())
#     print("qm set {} -hostpci0 01:10.{},pcie=1".format(vmid, pis))
#     vmid += 1
#     pis += 2
#     if vmid-startnum>=4:
#         break
# #
# for i in range(1, 2201):
#     # print i
#     td = table.row_values(i)
#     # print td[0],td[1],td[2],td[3],td[4],td[6],td[7]
#     # ip link set dev eno1 vf 3 mac a6:69:05:73:5b:1c
#     # ip link set dev eno1 vf 3 trust on
#     # print "ip link set dev eno1 vf {} mac {}".format(j, td[7])
#     # print "ip link set dev eno1 vf {} trust on".format(j)
#     print "qm clone 10500 {}".format(vmid)
#     print "qm set {} -name {}".format(vmid, td[0])
#     print "qm set {} -scsi1 /dev/disk/by-id/{}".format(vmid, pve106_hds[i+3])
#     print "qm set {} -smbios1 uuid={}".format(vmid, td[2])
#     print "qm set {} -net0 virtio={},bridge=vmbr0".format(vmid, td[4].upper())
#     print "qm set {} -net1 virtio={},bridge=vmbr1".format(vmid, td[7].upper())
#     # print "qm set {} -ivshmem size=126976,name=foo".format(vmid)
#     # qm set <vmid> -ivshmem size=32,name=foo
#     # qm set 10300 -ivshmem size=126976,name=foo
#     # qm clone 10300 20001
#
#     # net0: virtio=92:D2:6F:25:2B:DE,bridge=vmbr0
#     # net1: virtio=5e:9b:97:a5:6c:1a,bridge=vmbr1
#     # scsi0: local-lvm:vm-10300-disk-0,size=90G
#     # scsi1: /dev/disk/by-id/scsi-35000c50058b7693f,size=2930266584K
#     # scsihw: virtio-scsi-pci
#     # smbios1: uuid=0a644b3f-18a3-4eb7-a7f3-c5684bc254d5
#     # sockets: 2
#     # vmgenid: 7191a34e-4b19-4d8b-b9f9-47e6f4dc8e31
#     j +=1
#     vmid += 1
#     sriv += 2
# #